/**
 * Project: complex.java
 * 
 * File Created at 2011-8-22
 * $Id$
 * 
 * Copyright 2008 Alibaba.com Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Alibaba Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Alibaba.com.
 */
package complex.java.base;

import java.util.LinkedList;
import java.util.Queue;
import java.util.Stack;

/**
 * TODO Comment of LinkedListtest
 * @author ymkyve
 *
 */
public class LinkedListTest {
    public static void main(String[] args) {
        Queue queue = new LinkedList();
        queue.offer("1");
        System.out.println(queue.peek());
        System.out.println(queue.poll());
        System.out.println(queue.peek());
        
        Stack stack =  new Stack ();
        stack.push("2");
        System.out.println(stack.peek());
        System.out.println(stack.pop());
        System.out.println(stack.peek());
    }
}
